﻿namespace EasyTest
{
    public class DriverInfo
    {
        public string Title { get; set; }
        public string Url { get; set; }
        public string PageSource { get; set; }
        public Focus Focus { get; set; }
        DriverInfo(string title, string url, string pageSource, Focus focus)
        {
            Title = title;
            Url = url;
            PageSource = pageSource;
            Focus = focus;
        }
        public static DriverInfo GetInfo(Focus focus)
        {
            return new DriverInfo(Browser.Driver.Title,Browser.Driver.Url,Browser.Driver.PageSource,focus);
        }
    }
}
